SMAHB05500_[자동판정]의사종합소견(과거).xrw 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 :
  4. * 설 명 :
  5. * 설 계 자 :
  6. * 작 성 자 :
  7. * 작 성 일 :
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  12. <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:my="http://www.comsquare.co.kr/example" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:cs="http://www.comsquare.co.kr/xforms">
  13. <xhtml:head>
  14. <xhtml:title>[자동판정]의사종합소견(과거)</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <patinfo/>
  20. <judgpatlst/>
  21. <prt>
  22. <lstopn/>
  23. <lstopn2/>
  24. </prt>
  25. <acptlst>
  26. <item>
  27. </item>
  28. </acptlst>
  29. <data>
  30. <c_list>
  31. </c_list>
  32. <ro_list>
  33. </ro_list>
  34. <u_list>
  35. </u_list>
  36. <pa_list>
  37. <item2/>
  38. </pa_list>
  39. <rd_list>
  40. <item1/>
  41. <item2/>
  42. <item3/>
  43. </rd_list>
  44. <rd2_list>
  45. <item1/>
  46. <item2/>
  47. <item3/>
  48. <item4/>
  49. <item5/>
  50. </rd2_list>
  51. <m_list>
  52. <item1/>
  53. <item3/>
  54. </m_list>
  55. <s_list/>
  56. <lvl1_list>
  57. </lvl1_list>
  58. <lvl2_list/>
  59. <lvl3_list/>
  60. <sim_list>
  61. <item1/>
  62. <item2/>
  63. </sim_list>
  64. <desa1_list/>
  65. <desa_list>
  66. <item3/>
  67. </desa_list>
  68. </data>
  69. <patsumm>
  70. <item>
  71. <summ_data0/>
  72. <summ_data1/>
  73. </item>
  74. </patsumm>
  75. <acptlist>
  76. <hopedd/>
  77. </acptlist>
  78. </main>
  79. <hidden/>
  80. <send_05400>
  81. <savedata>
  82. <item/>
  83. <item2/>
  84. </savedata>
  85. <reqdata>
  86. </reqdata>
  87. </send_05400>
  88. <temp/>
  89. <tempacptlist>
  90. <acptlist/>
  91. </tempacptlist>
  92. <init>
  93. <baseinfo>
  94. <drlst>
  95. <itemdr/>
  96. </drlst>
  97. </baseinfo>
  98. <A0008list>
  99. <A0008>
  100. <cdnm/>
  101. <cdid/>
  102. </A0008>
  103. </A0008list>
  104. <A0039list>
  105. <A0039>
  106. <cdnm/>
  107. <cdid/>
  108. </A0039>
  109. </A0039list>
  110. <lang>
  111. <lang1/>
  112. <lang2/>
  113. </lang>
  114. </init>
  115. </root>
  116. </instance>
  117. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  118. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  119. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  120. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  121. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  122. <script type="javascript" src="../../../ast/healexamweb/js/AHA001.js"/>
  123. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  124. <script type="javascript" src="../../../com/pacsweb/js/ZEP001.js"/>
  125. <script type="javascript" src="../../../com/signweb/js/ZES001.js"/>
  126. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  127. <script type="javascript" src="../../../ast/healexamautojudgweb/js/AJDG001.js"/>
  128. <script type="javascript" src="../../../com/signweb/js/ZES001.js"/>
  129. <script type="javascript" src="../../../emr/carecomweb/js/ENRSignEngine.js"/>
  130. <script type="javascript" src="../../../emr/commonweb/js/EMRCommon.js"/>
  131. <submission id="TRAHB03805" mediatype="application/x-www-form-urlencoded" method="post"/>
  132. <script type="javascript" ev:event="xforms-ready">
  133. <![CDATA[
  134. fAcptComboSet();
  135. fPatInfoSet();
  136. // fDefaultPatData();
  137. ]]>
  138. </script>
  139. <submission id="TRAHB05401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send_05400/reqdata" resultref="/root/main/data"/>
  140. <submission id="TRAHB05402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send_05400/reqdata" resultref="/root/main/prt"/>
  141. <submission id="TRAHB01504" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send_05400" replace="instance" resultref="/root/init/baseinfo/drlst"/>
  142. <submission id="TRAHB05101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/patinfo" resultref="/root/main/judgpatlst"/>
  143. <submission id="TRAHB05404" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/patinfo" resultref="/root/temp/item"/>
  144. <submission id="TXAHB05403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/patinfo"/>
  145. <submission id="TXAHB05405" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send_05400/savedata/item" resultref="/root/hidden"/>
  146. <submission id="TRAHB05501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/temp" resultref="/root/main/acptlist"/>
  147. </model>
  148. <script type="javascript">
  149. <![CDATA[
  150. function fAcptComboSet(){
  151. submit("TRAHB05501");
  152. copyNodeListType("/root/tempacptlist" , "/root/main/acptlist", "replace");
  153. cmb_acptlist.refresh();
  154. }//fAcptComboSet end
  155. function fPatInfoSet(){
  156. model.copyNode("/root/main/patinfo" , "/root/temp");
  157. // ipt_hngnm.refresh(); ipt_sex.refresh(); ipt_pid.refresh(); ipt_rrgstno1.refresh(); ipt_rrgstno2.refresh(); ipt_hopedd.refresh();
  158. }//fPatInfoSet() end
  159. function fDefaultPatData(){
  160. fGetHealexamCodeList( new Array("A0008" , "A0039"),
  161. new Array("/root/init/A0008list","/root/init/A0039list") );
  162. cmb_lang1.value= 'ENG';
  163. cmb_lang2.value= 'ENG';
  164. //화면 상단에 아웃풋박스
  165. var hngnm = model.getValue("/root/main/patinfo/hngnm");
  166. var hopedd = model.getValue("/root/main/patinfo/hopedd");
  167. var data0 = hngnm + " 님이 " + hopedd.substr(0,4) + "년 " + hopedd.substr(4,2) + "월 " + hopedd.substr(6,2) + "일 실시한 건강 검진 소견서 입니다."
  168. model.setValue("/root/main/patsumm/item/summ_data0",data0);
  169. //의사아이디
  170. model.makeValue("/root/send_05100/srchhealexamflag" , 'C');
  171. model.makeValue("/root/send_05100/srchcond", "J");
  172. submit("TRAHB01504");
  173. //화면하단에 아웃풋 박스
  174. var fcnfmdrid = model.getValue("/root/main/patinfo/fcnfmdrid"); //최초확정자 id
  175. var lcnfmdrid = model.getValue("/root/main/patinfo/lcnfmdrid"); //최종확정자 id
  176. var fcnfmdrnm = model.getValue("/root/init/baseinfo/drlst/itemdr[drid = '" + fcnfmdrid +"']/drnm");
  177. var lcnfmdrnm = model.getValue("/root/init/baseinfo/drlst/itemdr[drid = '" + lcnfmdrid +"']/drnm");
  178. var fcnfmts = model.getValue("/root/main/patinfo/fcnfmts"); //최초확정자 일시
  179. var lcnfmts = model.getValue("/root/main/patinfo/lcnfmts"); //최종확정 일시
  180. var data1 = "최초작성 " + fcnfmts + " " + fcnfmdrnm + " 최종작성 " + lcnfmts + " " + lcnfmdrnm;
  181. model.setValue("/root/main/patsumm/item/summ_data1",data1);
  182. model.resetInstanceNode("/root/send_05400/reqdata");
  183. model.makeValue("/root/send_05400/reqdata/srchhealexamflag" , model.getValue("/root/main/patinfo/healexamflag"));
  184. model.makeValue("/root/send_05400/reqdata/srchhealexamdetlflag" , model.getValue("/root/main/patinfo/healexamdetlflag"));
  185. model.makeValue("/root/send_05400/reqdata/srchrsrvdd" , model.getValue("/root/main/patinfo/rsrvdd"));
  186. model.makeValue("/root/send_05400/reqdata/srchrsrvno" , model.getValue("/root/main/patinfo/rsrvno"));
  187. model.makeValue("/root/send_05400/reqdata/srchpid" , model.getValue("/root/main/patinfo/pid"));
  188. model.makeValue("/root/send_05400/reqdata/srchinstcd" , model.getValue("/root/main/patinfo/instcd"));
  189. model.makeValue("/root/send_05400/reqdata/srchstatflag" , model.getValue("/root/main/patinfo/statflag"));
  190. model.makeValue("/root/send_05400/reqdata/srchage" , model.getValue("/root/main/patinfo/age"));
  191. model.makeValue("/root/send_05400/reqdata/srchsex" , model.getValue("/root/main/patinfo/sex"));
  192. model.makeValue("/root/send_05400/reqdata/srchhopedd" , model.getValue("/root/main/patinfo/hopedd"));
  193. model.makeValue("/root/send_05400/reqdata/srchhngnm" , model.getValue("/root/main/patinfo/hngnm"));
  194. model.makeValue("/root/send_05400/reqdata/ajocyn" , "");
  195. model.makeValue("/root/send_05400/reqdata/srchflag" , 'display');
  196. submit("TRAHB05401");
  197. fBtnSet("GY");
  198. if(model.getValue("/root/main/data/m_list/item1") == ""){ //데이터가 없으면 노드를 생성한다.
  199. model.makeNode("/root/main/data/m_list/item1");
  200. }
  201. if(model.getValue("/root/main/data/m_list/item3") == ""){ //데이터가 없으면 노드를 생성한다.
  202. model.makeNode("/root/main/data/m_list/item3");
  203. }
  204. fSetCount();//1번탭에 내역 나눔
  205. fSetPa();//3번탭에 요약 만듬
  206. button5.dispatch("onclick");
  207. model.refresh();
  208. }
  209. function fNewPrintRslt() {
  210. model.makeValue("/root/send_05400/reqdata/srchhealexamflag", model.getValue("/root/main/patinfo/healexamflag")); //건진구분
  211. model.makeValue("/root/send_05400/reqdata/srchhealexamdetlflag", model.getValue("/root/main/patinfo/healexamdetlflag")); //건진구분
  212. model.makeValue("/root/send_05400/reqdata/srchrsrvdd", model.getValue("/root/main/patinfo/rsrvdd")); //건진구분
  213. model.makeValue("/root/send_05400/reqdata/srchrsrvno", model.getValue("/root/main/patinfo/rsrvno")); //건진구분
  214. model.makeValue("/root/send_05400/reqdata/srchpid", model.getValue("/root/main/patinfo/pid")); //건진구분
  215. model.makeValue("/root/send_05400/reqdata/srchinstcd", model.getValue("/root/main/patinfo/instcd")); //건진구분
  216. // model.makeValue("/root/send_05300/reqdata/srchlangflag", rdo_language.value); //건진구분
  217. model.makeValue("/root/send_05400/reqdata/srchhopedd", model.getValue("/root/main/patinfo/hopedd")); //건진구분
  218. model.makeValue("/root/send_05400/reqdata/srchhngnm", model.getValue("/root/main/patinfo/hngnm")); //성명
  219. model.makeValue("/root/send_05400/reqdata/srchsex", model.getValue("/root/main/patinfo/sex")); //성별
  220. model.makeValue("/root/send_05400/reqdata/srchage", model.getValue("/root/main/patinfo/age")); //성별
  221. model.makeValue("/root/send_05400/reqdata/srchflag" , 'prt');
  222. //그리드에 뿌려주기
  223. ret = submit("TRAHB05402");
  224. exeReportPreview("RPAHB05402", "XMLSTR", "/root/main/prt", "", "", "", "", "", "", "","", "", "", "", "", "", "", "printpaper=8;");
  225. }
  226. function fSetCount(){
  227. var i = 0;
  228. for( i = 0 ; i < getNodesetCount("/root/main/data/c_list") ; i++){
  229. model.setValue("/root/main/data/c_list['" + (i+1) + "']/item7", i+1);
  230. }
  231. for( i = 0 ; i < getNodesetCount("/root/main/data/ro_list") ; i++){
  232. model.setValue("/root/main/data/ro_list['" + ( i+1) + "']/item7", i+1);
  233. }
  234. for( i = 0 ; i < getNodesetCount("/root/main/data/u_list") ; i++){
  235. model.setValue("/root/main/data/u_list['" + (i+1) + "']/item7", i+1);
  236. }
  237. }//fPatInfoSet() end
  238. function fSetPa(){
  239. var totrow_c = "";
  240. var totrow_r = "";
  241. var totrow_u = "";
  242. var totrow_a = "";
  243. var item2 = "";
  244. for(var i = 0 ; i < getNodesetCount("/root/main/data/pa_list") ; i++){
  245. item1 = model.getValue("/root/main/data/pa_list['"+ (i+1)+"']/item1");
  246. item2 = model.getValue("/root/main/data/pa_list['"+ (i+1)+"']/item2") + " , ";
  247. if(item1 == "C"){
  248. totrow_c = totrow_c + " " + item2;
  249. }else if(item1 == "R"){
  250. totrow_r = totrow_r + " " + item2;
  251. }else if(item1 == "U"){
  252. totrow_u = totrow_u + " " + item2;
  253. }else if(item1 == "A"){
  254. totrow_a = totrow_a + " " + item2;
  255. }
  256. var tottot = "- 과거 병력 : " + totrow_a
  257. + "\n" + "- 이번검진으로 진단 : " + totrow_c
  258. + "\n" + "- 이번검진으로 의심 : " + totrow_r
  259. + "\n" + "- 이번검진으로 소견 : " + totrow_u ;
  260. model.makeValue("/root/main/data/pa_list/item3", tottot);
  261. }
  262. }//fSetPa() end
  263. function fSaveData(flag,m){
  264. model.makeNode("/root/send_05400/savedata");
  265. model.makeNode("/root/send_05400/savedata/item");
  266. if( flag == 'GY'){
  267. var item1 = model.getValue("/root/main/data/rd_list/item1"); //소견
  268. var item2 = model.getValue("/root/main/data/rd_list/item2"); //일련번호
  269. var item3 = model.getValue("/root/main/data/rd_list/item3"); //소견(외국어)
  270. }
  271. if( flag == 'DS'){
  272. var item1 = model.getValue("/root/main/data/m_list/item1");
  273. var item2 = model.getValue("/root/main/data/m_list/item2");
  274. var item3 = model.getValue("/root/main/data/m_list/item3");
  275. }
  276. var data = "m▦rownum▦lastupdtdt▦lastupdtrid▦dracptyn▦instcd▦healexamflag▦healexamdetlflag▦rsrvdd▦rsrvno▦cnstclsf▦cnstseq▦outcnstcnts▦cnstcnts▦pid▩"
  277. + m + "▦"
  278. + "" + "▦"
  279. + "" + "▦"
  280. + "" + "▦"
  281. + 'Y' + "▦"
  282. + model.getValue("/root/main/patinfo/instcd") + "▦"
  283. + model.getValue("/root/main/patinfo/healexamflag") + "▦"
  284. + model.getValue("/root/main/patinfo/healexamdetlflag") + "▦"
  285. + model.getValue("/root/main/patinfo/rsrvdd") + "▦"
  286. + model.getValue("/root/main/patinfo/rsrvno") + "▦"
  287. + flag + "▦"
  288. + item2 + "▦"
  289. + item3 + "▦"
  290. + item1 + "▦"
  291. + model.getValue("/root/main/patinfo/pid") + "▩";
  292. model.setValue("/root/send_05400/savedata/item" , data);
  293. submit("TXAHB05405");
  294. }//fSaveData() end
  295. function fBtnSet(flag){
  296. if(flag == "GY"){
  297. //기능,영상검사에서 수정과 저장 버튼을 활성화 시킨다.
  298. if(model.getValue("/root/main/data/rd_list/item2") != "" ){ //일련번호가 있으면 기 데이터가 있으므로 수정
  299. btn_gy_save.disabled = true;
  300. btn_gy_updt.disabled = false;
  301. }else{
  302. btn_gy_save.disabled = false;
  303. btn_gy_updt.disabled = true;
  304. }
  305. //의사소견에서 수정과 저장 버튼을 활성화 시킨다.
  306. if(model.getValue("/root/main/data/m_list/item2") != "" ){ //일련번호가 있으면 기 데이터가 있으므로 수정
  307. btn_ds_save.disabled = true;
  308. btn_ds_updt.disabled = false;
  309. }else{
  310. btn_ds_save.disabled = false;
  311. btn_ds_updt.disabled = true;
  312. }
  313. }
  314. }
  315. function fSign() {
  316. alert("1");
  317. Sign.certreload = true ; // 전자서명 호출시 인증저장 버튼을 누늘때마다 인증서가 뜨도록 처리
  318. alert("2");
  319. model.makeNode("/root/SignData");
  320. if(Sign.signprocess() == true){
  321. alert("signprocess");
  322. // 전자인증 관련 환자 인적 정보를 보내줌.
  323. var sFormcd = model.getValue("/root/init/A0039list/A0039[cdid = '1']/cdnm"); //인증저장 서식코드 가져옴
  324. model.makeValue("/root/main/patinfo/formcd" , sFormcd);
  325. model.copyNode("SignData" , "/root/main");
  326. alert("3");
  327. }
  328. }
  329. function fMake_SignData(){
  330. Sign.addnode("/root/main/signSaveData");
  331. // Sign.addnode("/root/main/signSaveData");
  332. }
  333. ]]>
  334. </script>
  335. </xhtml:head>
  336. <xhtml:body guideline="2,149;1,21;2,214;1,201;1,1178;2,100;" style="border-left-style:none; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  337. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  338. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:280px; height:13px; ">[자동판정] 의사종합소견(과거)</caption>
  339. </group>
  340. <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:767px; ">
  341. <select id="chk_preview" ref="/root/temp/preview" visibility="hidden" overflow="visible" appearance="full" cols="4" rows="1" style="left:225px; top:745px; width:75px; height:15px; border-style:none; ">
  342. <choices>
  343. <item>
  344. <label>미리보기</label>
  345. <value>Y</value>
  346. </item>
  347. </choices>
  348. <script type="javascript" ev:event="xforms-select">
  349. <![CDATA[
  350. fSetCmpyCtrl(false);
  351. model.setValue("/root/temp/preview","Y");
  352. ]]>
  353. </script>
  354. <script type="javascript" ev:event="xforms-deselect">
  355. <![CDATA[
  356. model.setValue("/root/temp/preview","");
  357. fSetCmpyCtrl(true);
  358. ]]>
  359. </script>
  360. </select>
  361. <select1 id="cmb_prntflag" ref="/root/main/prntoptinfo/prntflag" class="combo_default" visibility="hidden" appearance="minimal" style="left:410px; top:740px; width:60px; height:19px; ">
  362. <choices>
  363. <item>
  364. <label>Paper</label>
  365. <value>paper</value>
  366. </item>
  367. <item>
  368. <label>Excel</label>
  369. <value>xls</value>
  370. </item>
  371. <item>
  372. <label>PDF</label>
  373. <value>pdf</value>
  374. </item>
  375. <item>
  376. <label>HTML</label>
  377. <value>html</value>
  378. </item>
  379. <item>
  380. <label>BMP</label>
  381. <value>bmp</value>
  382. </item>
  383. <item>
  384. <label>TXT</label>
  385. <value>txt</value>
  386. </item>
  387. <item>
  388. <label>XML</label>
  389. <value>xml</value>
  390. </item>
  391. </choices>
  392. </select1>
  393. <switch id="switch1" style="left:10px; top:80px; width:1170px; height:630px; ">
  394. <case id="case1">
  395. <caption id="caption3" class="cell_1" style="left:10px; top:5px; width:1145px; height:20px; ">■ 빠른 진료 필요</caption>
  396. <caption id="caption4" style="left:10px; top:30px; width:1145px; height:20px; ">건강 진단 결과 의학적으로 의미가 있어 치료 및 진단을 위해 빠른 식일 내에 진료 받으셔야 할 소견입니다.</caption>
  397. <datagrid id="grd_c_list" nodeset="/root/main/data/c_list" autoresize="true" caption="조합^소견^진료과^순서^caption1" colsep="^" colwidth="52, 902, 108, 76, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:10px; top:50px; width:1145px; height:150px; ">
  398. <col ref="item10"/>
  399. <col ref="item4"/>
  400. <col ref="item5" style="text-align:left; "/>
  401. <col ref="item7" style="text-align:center; "/>
  402. <col ref="item8" visibility="hidden"/>
  403. </datagrid>
  404. <caption id="caption8" class="cell_1" style="left:10px; top:208px; width:1145px; height:20px; ">■ 경과 관찰을 위한 진료 필요</caption>
  405. <caption id="caption13" style="left:10px; top:235px; width:1145px; height:20px; ">건강 진단 결과 정상 범위를 벗어난 소견으로 경과 관찰을 위해 권고 기간 내에 진료를 받으시기 바랍니다.</caption>
  406. <datagrid id="grd_ro_list" nodeset="/root/main/data/ro_list" autoresize="true" caption="조합^소견^권고기간^진료과^순서^caption1" colsep="^" colwidth="51, 793, 99, 108, 76, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:10px; top:255px; width:1145px; height:150px; ">
  407. <col ref="item10"/>
  408. <col ref="item4"/>
  409. <col ref="item3" style="text-align:center; "/>
  410. <col ref="item5" style="text-align:left; "/>
  411. <col ref="item7" style="text-align:center; "/>
  412. <col ref="item8" visibility="hidden"/>
  413. </datagrid>
  414. <datagrid id="grd_u_list" nodeset="/root/main/data/u_list" autoresize="true" caption="조합^소견^순서^caption1" colsep="^" colwidth="50, 1003, 76, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:10px; top:460px; width:1145px; height:150px; ">
  415. <col ref="item10"/>
  416. <col ref="item4"/>
  417. <col ref="item7" style="text-align:center; "/>
  418. <col ref="item8" visibility="hidden"/>
  419. </datagrid>
  420. <caption id="caption14" style="left:10px; top:440px; width:1145px; height:20px; ">건강 진단 결과 즉각적인 진료를 요하지는 않지만, 주의하시거나 알고 계셔야 할 소견 입니다.</caption>
  421. <caption id="caption16" class="cell_1" style="left:10px; top:415px; width:1145px; height:20px; ">■ 주의소견</caption>
  422. </case>
  423. <case id="case2" selected="true">
  424. <caption id="caption17" class="cell_1" style="left:10px; top:5px; width:1144px; height:20px; ">■ 기능 검사 및 영상의학 검사 소견</caption>
  425. <textarea id="tar_rd_list" ref="/root/main/data/rd_list/item1" style="left:418px; top:30px; width:365px; height:340px; "/>
  426. <textarea id="tar_rd_list3" ref="/root/main/data/rd_list/item3" style="left:785px; top:30px; width:369px; height:340px; "/>
  427. <caption id="caption18" class="cell_1" style="left:10px; top:375px; width:1144px; height:20px; ">■ 의사 소견 기입</caption>
  428. <textarea id="tar_m_list" ref="/root/main/data/m_list/item1" style="left:10px; top:400px; width:570px; height:105px; "/>
  429. <textarea id="tar_m_list3" ref="/root/main/data/m_list/item3" style="left:584px; top:400px; width:570px; height:105px; "/>
  430. <caption id="caption19" class="cell_1" style="left:10px; top:510px; width:1144px; height:20px; ">■ 요약</caption>
  431. <textarea id="textarea4" ref="/root/main/data/pa_list/item3" style="left:10px; top:535px; width:1144px; height:90px; "/>
  432. <button id="button2" class="btn2_letter7" visibility="hidden" style="left:970px; top:375px; width:97px; height:19px; ">
  433. <caption>자주쓰는 문구</caption>
  434. <script type="javascript" ev:event="onclick">
  435. <![CDATA[
  436. var totdata = model.getValue("/root/main/data/m_list/item1");
  437. var totdata3 = model.getValue("/root/main/data/m_list/item3");
  438. var sValue =
  439. "1" + "▦" +
  440. '' + "▦" + //분류1
  441. '' + "▦" + //분류2
  442. '' + "▦" + //분류3
  443. '' + "▦" + //처방
  444. 3 //ajmm_useflag
  445. ;
  446. setParameter("SPAHB03300_PARM",sValue);
  447. modal("SPAHB03300", "1","50", "50", "SPAHB03300", "", "", "");
  448. // 불러온 데이터를 쌓는 로직
  449. if(model.getValue("/root/tmp_03300/ajmmlist[ajmm_langflag = '"+ cmb_lang1.value+"']/ajmm_detlrecm") == ""){messageBox("선택된 데이터가 없습니다","I999"); return false;}
  450. var data = model.getValue("/root/tmp_03300/ajmmlist[ajmm_langflag = 'KOR']/ajmm_detlrecm");
  451. var data3 = model.getValue("/root/tmp_03300/ajmmlist[ajmm_langflag = '"+cmb_lang1.value+"']/ajmm_detlrecm");
  452. totdata = totdata + "\n" +data;
  453. totdata3 = totdata3 + "\n" +data3;
  454. if(model.getValue("/root/main/data/m_list/item1") == ""){
  455. model.makeValue("/root/main/data/m_list/item1" , data);
  456. model.makeValue("/root/main/data/m_list/item3" , data3);
  457. }else{
  458. model.setValue("/root/main/data/m_list/item1" , totdata);
  459. model.setValue("/root/main/data/m_list/item3" , totdata3);
  460. }
  461. tar_m_list.refresh();
  462. tar_m_list3.refresh();
  463. ]]>
  464. </script>
  465. </button>
  466. <datagrid id="datagrid9" nodeset="/root/main/data/rd2_list" autoresize="true" caption="검사^내역^영어처방명^외국어^처방코드" colsep="^" colwidth="131, 251, 100, 284, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:10px; top:30px; width:405px; height:340px; ">
  467. <col ref="item1" type="inputbutton"/>
  468. <col ref="item2"/>
  469. <col ref="item3" visibility="hidden"/>
  470. <col ref="item4"/>
  471. <col ref="item5" visibility="hidden"/>
  472. <script type="javascript" ev:event="onbuttonclick">
  473. <![CDATA[
  474. if (datagrid9.colRef("item1") == datagrid9.col ){ //메인값
  475. model.resetInstanceNode("/root/tmp_03300/ajmmlist");
  476. var sValue =
  477. "1" + "▦" +
  478. '' + "▦" + //분류1
  479. '' + "▦" + //분류2
  480. '' + "▦" + //분류3
  481. model.getValue("/root/main/data/rd2_list["+datagrid9.row+ "]/item5") + "▦" + //처방
  482. "2" //ajmm_useflag
  483. ;
  484. setParameter("SPAHB03300_PARM",sValue);
  485. modal("SPAHB03300", "1","50", "50", "SPAHB03300", "", "", "sysmenu:hidden"); //sysmenu:hidden
  486. if(model.getValue("/root/tmp_03300/ajmmlist/ajmm_seqno") != ""){
  487. var adddesc = model.getValue("/root/main/data/rd2_list[" + datagrid9.row + "]/item2"); //추가내용
  488. model.makeValue("/root/main/data/rd2_list["+ datagrid9.row+"]/item2" , adddesc + "\n" + model.getValue("/root/tmp_03300/ajmmlist[ajmm_langflag = 'KOR']/ajmm_detlrecm")); //변환내용
  489. //외국어
  490. var adddesc2 = model.getValue("/root/main/data/rd2_list[" + datagrid9.row + "]/item3"); //추가내용
  491. var langflag = cmb_lang2.value;
  492. model.makeValue( "/root/main/data/rd2_list[" + datagrid9.row+"]/item3" ,
  493. adddesc2
  494. + "\n"
  495. +model.getValue("/root/tmp_03300/ajmmlist[ajmm_langflag = '"+ langflag + "']/ajmm_detlrecm")
  496. );
  497. }
  498. }
  499. datagrid9.refresh();
  500. ]]>
  501. </script>
  502. </datagrid>
  503. <button id="button14" class="icon_right" style="left:385px; top:32px; width:26px; height:19px; ">
  504. <caption/>
  505. <script type="javascript" ev:event="DOMActivate">
  506. <![CDATA[
  507. var totdata = "";
  508. var totdata2 = ""; //외국어
  509. for(var i = 0 ; i < getNodesetCount("/root/main/data/rd2_list") ; i++ ){
  510. var item1 = '-' + model.getValue("/root/main/data/rd2_list['"+ (i+1) +"']/item1");
  511. var item2 = model.getValue("/root/main/data/rd2_list['"+ (i+1) +"']/item2");
  512. totdata = totdata + item1 + "\n";
  513. totdata = totdata + item2 + "\n";
  514. totdata = totdata + "\n";
  515. var item3 = '-' + model.getValue("/root/main/data/rd2_list['"+ (i+1) +"']/item3");
  516. var item4 = model.getValue("/root/main/data/rd2_list['"+ (i+1) +"']/item4");
  517. totdata2 = totdata2 + item3 + "\n";
  518. totdata2 = totdata2 + item4 + "\n";
  519. totdata2 = totdata2 + "\n";
  520. }
  521. model.makeValue("/root/main/data/rd_list/item1" , totdata);
  522. model.makeValue("/root/main/data/rd_list/item3" , totdata2); //2는 일련번호
  523. tar_rd_list.refresh();
  524. tar_rd_list3.refresh();
  525. ]]>
  526. </script>
  527. </button>
  528. <button id="btn_gy_save" class="btn5_letter2" visibility="hidden" style="left:1111px; top:5px; width:42px; height:19px; ">
  529. <caption>저장</caption>
  530. <script type="javascript" ev:event="onclick">
  531. <![CDATA[
  532. fSaveData('GY','i')
  533. ]]>
  534. </script>
  535. </button>
  536. <button id="btn_ds_save" class="btn5_letter2" visibility="hidden" style="left:1111px; top:375px; width:42px; height:19px; ">
  537. <caption>저장</caption>
  538. <script type="javascript" ev:event="onclick">
  539. <![CDATA[
  540. fSaveData('DS','i')
  541. ]]>
  542. </script>
  543. </button>
  544. <button id="btn_gy_updt" class="btn5_letter2" visibility="hidden" style="left:1068px; top:5px; width:45px; height:19px; ">
  545. <caption>수정</caption>
  546. <script type="javascript" ev:event="onclick">
  547. <![CDATA[
  548. fSaveData('GY','u')
  549. ]]>
  550. </script>
  551. </button>
  552. <button id="btn_ds_updt" class="btn5_letter2" visibility="hidden" style="left:1068px; top:375px; width:42px; height:19px; ">
  553. <caption>수정</caption>
  554. <script type="javascript" ev:event="onclick">
  555. <![CDATA[
  556. fSaveData('DS','u')
  557. ]]>
  558. </script>
  559. </button>
  560. <select1 id="cmb_lang1" ref="/root/init/lang/lang1" visibility="hidden" appearance="minimal" style="left:870px; top:375px; width:100px; height:19px; ">
  561. <choices>
  562. <itemset nodeset="/root/init/A0008list/A0008">
  563. <label ref="cdnm"/>
  564. <value ref="cdid"/>
  565. </itemset>
  566. </choices>
  567. </select1>
  568. </case>
  569. <case id="case3">
  570. <caption id="caption2" class="cell_1" style="left:10px; top:5px; width:1144px; height:20px; ">■ 심혈관 질환 위험도 평가</caption>
  571. <caption id="caption7" style="left:10px; top:30px; width:1144px; height:20px; ">심혈관 질환(관상동맥 질환) 위험도는 현재까지 연구된 결과를 바탕으로 알려진 여러가지 심혈관 질환에 영향을 미치는 위험 요인을 고려하여 향후 심혈관 질환 발생 가능성을 알려드립니다.</caption>
  572. <datagrid id="datagrid4" nodeset="/root/main/data/lvl1_list" autoresize="true" caption="결정적 위험 요인^해당" colsep="^" colwidth="220, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:191px; top:50px; width:323px; height:150px; ">
  573. <col ref="item5"/>
  574. <col checkvalue="Y,N" disabled="true" ref="item6" type="checkbox"/>
  575. </datagrid>
  576. <datagrid id="datagrid5" nodeset="/root/main/data/lvl2_list" autoresize="true" caption="강한 위험요인^해당" colsep="^" colwidth="221, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:515px; top:50px; width:325px; height:150px; ">
  577. <col ref="item5"/>
  578. <col checkvalue="Y,N" disabled="true" ref="item6" type="checkbox"/>
  579. </datagrid>
  580. <datagrid id="datagrid6" nodeset="/root/main/data/sim_list" autoresize="true" caption="10년 후 심혈관질환 발생 가능성" colsep="^" colwidth="175" mergecellsfixedrows="bycolrec" rowsep="|" style="left:10px; top:50px; width:180px; height:150px; ">
  581. <col ref="item1"/>
  582. </datagrid>
  583. <caption id="caption10" class="cell_1" style="left:10px; top:205px; width:1144px; height:20px; ">[분석 결과]</caption>
  584. <textarea id="textarea5" ref="/root/main/data/sim_list/item2" style="left:10px; top:230px; width:1149px; height:65px; "/>
  585. <caption id="caption20" class="cell_1" style="left:10px; top:300px; width:1144px; height:20px; ">■ 대사증후군 평가</caption>
  586. <caption id="caption21" style="left:10px; top:325px; width:1144px; height:40px; ">
  587. <![CDATA[대사증후군이랑 여러 가지 대사 상태를 복합적으로 고려한 종합적 평가 기준으로서, 비만 그중에서도 특히 복부비만과 신체활동의 저하로 인한 인슐린 저항성과 관런이 있습니다.
  588. 대사 증후군의 요소들은 서로 같이 나타나는 경우가 많으며, 대사 증후군의 경우 심혈관 질환의 위험성이 높아집니다. 여기서는 NCEP 기준을 적용하여 평가하였습니다.]]>
  589. </caption>
  590. <datagrid id="datagrid7" nodeset="/root/main/data/desa1_list" autoresize="true" caption="항목^기준^결과^해당" colsep="^" colwidth="533, 246, 240, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:10px; top:365px; width:1149px; height:165px; ">
  591. <col ref="item1"/>
  592. <col ref="item2"/>
  593. <col ref="item3"/>
  594. <col checkvalue="Y,N" disabled="true" ref="item4" type="checkbox"/>
  595. </datagrid>
  596. <caption id="caption22" class="cell_1" style="left:10px; top:535px; width:1144px; height:20px; ">[분석 결과]</caption>
  597. <textarea id="textarea6" ref="/root/main/data/desa_list/item1" style="left:10px; top:560px; width:1149px; height:65px; "/>
  598. <datagrid id="datagrid8" nodeset="/root/main/data/lvl3_list" autoresize="true" caption="보호 요인^해당" colsep="^" colwidth="217, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:840px; top:50px; width:319px; height:150px; ">
  599. <col ref="item5"/>
  600. <col checkvalue="Y,N" disabled="true" ref="item6" type="checkbox"/>
  601. </datagrid>
  602. </case>
  603. </switch>
  604. <button id="button5" class="btn_sw" group="tab" selected="true" style="left:10px; top:60px; width:130px; height:22px; ">
  605. <caption>1</caption>
  606. <toggle case="case1" ev:event="onclick"/>
  607. </button>
  608. <button id="button1" class="btn_sw" group="tab" selected="true" style="left:140px; top:60px; width:130px; height:22px; ">
  609. <caption>2</caption>
  610. <toggle case="case2" ev:event="onclick"/>
  611. </button>
  612. <button id="button8" class="btn_sw" group="tab" selected="true" style="left:270px; top:60px; width:130px; height:22px; ">
  613. <caption>3</caption>
  614. <toggle case="case3" ev:event="onclick"/>
  615. </button>
  616. <output id="opt_sumdata0" ref="/root/main/patsumm/item/summ_data0" style="left:11px; top:10px; width:1044px; height:19px; "/>
  617. <caption id="caption1" class="tit_2" style="left:10px; top:40px; width:151px; height:13px; ">의사종합소견</caption>
  618. <line id="line4" class="line_1" style="x1:10px; y1:54px; x2:1178px; y2:54px; "/>
  619. <output id="opt_summdata1" ref="/root/main/patsumm/item/summ_data1" style="left:10px; top:715px; width:1161px; height:19px; "/>
  620. <button id="button9" class="btn6_letter6" visibility="hidden" style="left:10px; top:740px; width:104px; height:22px; ">
  621. <caption>의사소견출력</caption>
  622. <script type="javascript" ev:event="onclick">
  623. <![CDATA[
  624. fNewPrintRslt();
  625. ]]>
  626. </script>
  627. </button>
  628. <button id="button10" class="btn6_letter6" visibility="hidden" style="left:115px; top:740px; width:104px; height:22px; ">
  629. <caption>전체출력</caption>
  630. <script type="javascript" ev:event="onclick">
  631. <![CDATA[
  632. fNewPrintRslt();
  633. ]]>
  634. </script>
  635. </button>
  636. <select1 id="cmb_lang2" ref="/root/init/lang/lang2" visibility="hidden" appearance="minimal" style="left:305px; top:740px; width:100px; height:19px; ">
  637. <choices>
  638. <itemset nodeset="/root/init/A0008list/A0008">
  639. <label ref="cdnm"/>
  640. <value ref="cdid"/>
  641. </itemset>
  642. </choices>
  643. </select1>
  644. <button id="button3" class="btn2_letter2" visibility="hidden" style="left:1136px; top:60px; width:42px; height:19px; ">
  645. <caption>조회</caption>
  646. <script type="javascript" ev:event="onclick">
  647. <![CDATA[
  648. fDefaultPatData();
  649. ]]>
  650. </script>
  651. </button>
  652. <select1 id="cmb_acptlist" ref="/root/tempacptlist/acptlist/hopedd" appearance="minimal" style="left:1078px; top:30px; width:100px; height:19px; ">
  653. <choices>
  654. <itemset nodeset="/root/tempacptlist/acptlist">
  655. <label ref="hopedd"/>
  656. <value ref="hopedd"/>
  657. </itemset>
  658. </choices>
  659. <script type="javascript" ev:event="xforms-value-changed">
  660. <![CDATA[
  661. model.setValue("/root/main/patinfo/rsrvdd" , model.getValue( "/root/main/acptlist[hopedd = '" + cmb_acptlist.value +"']/rsrvdd" ));
  662. model.setValue("/root/main/patinfo/rsrvno" ,model.getValue( "/root/main/acptlist[hopedd = '" + cmb_acptlist.value +"']/rsrvno" ));
  663. model.setValue("/root/main/patinfo/hopedd" , model.getValue( "/root/main/acptlist[hopedd = '" + cmb_acptlist.value +"']/hopedd" ));
  664. fDefaultPatData();
  665. fAcptComboSet(); // 화면단에서 건진일이 자꾸 겹처짐.. 해결 못했음. 일단 재조회로 버그 수정함.
  666. ]]>
  667. </script>
  668. </select1>
  669. <caption id="caption5" class="cell_1" style="left:1078px; top:5px; width:100px; height:20px; text-align:center; ">■ 건진일 ■</caption>
  670. </group>
  671. </xhtml:body>
  672. </xhtml:html>